class Post {
  final String id;
  final String title;
  final String content;
  final String authorName;
  final String authorTitle;
  final String authorAvatar;
  final int likes;
  final int comments;
  final DateTime createdAt;

  Post({
    required this.id,
    required this.title,
    required this.content,
    required this.authorName,
    required this.authorTitle,
    required this.authorAvatar,
    required this.likes,
    required this.comments,
    required this.createdAt,
  });
}

// 模拟数据
final List<Post> mockPosts = [
  Post(
    id: '1',
    title: '如何理解"阴平阳秘，精神乃治"？',
    content: '《黄帝内经》中提到"阴平阳秘，精神乃治"，这句话包含了中医养生的核心理念...',
    authorName: '张三',
    authorTitle: '主任医师',
    authorAvatar: 'assets/头像.png',
    likes: 128,
    comments: 32,
    createdAt: DateTime.now().subtract(const Duration(hours: 2)),
  ),
  Post(
    id: '2',
    title: '经方使用心得分享',
    content: '最近在临床中使用经方治疗多例感冒案例，结合《伤寒论》原文进行分析...',
    authorName: '李四',
    authorTitle: '中医师',
    authorAvatar: 'assets/头像.png',
    likes: 89,
    comments: 15,
    createdAt: DateTime.now().subtract(const Duration(hours: 5)),
  ),
];
